Valid for Sitecore
5.2, 5.1.1
AddToPublishQueue
![]() ![]() |
AddToPublishQueue positions the given item on the publish queue. The method returns True if the operation was successful, False otherwise.
bool AddToPublishQueue(
ItemDefinition item,
string action,
DateTime date,
CallContext context
)
Sitecore calls the AddToPublishQueue method when an item has been created, modified, or altered in such a way that it needs to be published. The action parameter is purely informational and is not used in practice. The date parameter is used for filtering in subsequent calls to GetPublishQueue.
![](/SdnArchive/images/sdn5/prev.gif)
![](/SdnArchive/images/sdn5/next.gif)